/*
 * @Description:
 * @Author: Rfan
 * @Date: 2022-04-20 17:31:03
 * @LastEditTime: 2023-01-18 15:25:14
 */

import { lazy } from 'react';
import Layout from '@/layout';
import lazyLoad from '@/routes/components/lazyLoad';

export const SysMaintenanceFuncNav = lazy(
  () => import(/* webpackChunkName: "System" */ '@/view/sysMaintenance/FuncAndNav/FuncAndNavMain')
);

export const SysMaintenanceFlowMgt = lazy(
  () => import(/* webpackChunkName: "System" */ '@/view/sysMaintenance/FlowMgt/FlowMgtMain')
);

export const SysMaintenanceTaskCronE = lazy(
  () => import(/* webpackChunkName: "System" */ '@/view/sysMaintenance/TaskCronE/TaskCronEMain')
);

export const SysMaintenanceChangelog = lazy(
  () => import(/* webpackChunkName: "System" */ '@/view/system/ChangeLog/ChangeLogMain')
);

export const SysMaintenanceBpmn = lazy(
  () => import(/* webpackChunkName: "UserRight" */ '@/view/bpmn/bpmnMain')
);
// export const LogInOutLog = lazy(
//   () => import(/* webpackChunkName: "Log" */ '@/view/logMgt/LogInOut/LogInOutMain')
// );
const SysMaintenanceRoutes = [
  {
    path: '/sys-maintenance',
    element: <Layout />,
    meta: {
      title: '系统维护管理'
    },
    children: [
      {
        path: 'func-nav',
        element: lazyLoad(SysMaintenanceFuncNav),
        meta: {
          title: '功能与导航维护'
        }
      },
      {
        path: 'flow-mgt',
        element: lazyLoad(SysMaintenanceFlowMgt),
        meta: {
          title: '流程管理'
        }
      },
      {
        path: 'task-cron',
        element: lazyLoad(SysMaintenanceTaskCronE),
        meta: {
          title: '任务Cron表达式'
        }
      },
      {
        path: 'changelog',
        element: lazyLoad(SysMaintenanceChangelog),
        meta: {
          title: '更新日志设置'
        }
      },
      {
        path: 'bpmn',
        element: lazyLoad(SysMaintenanceBpmn),
        hidden: true,
        meta: {
          title: 'bpmn'
        }
      }
    ]
  }
];

export default SysMaintenanceRoutes;
